<?php
namespace PsiFramework\Applications\DefaultApp\Classes\Model;

import("Classes.Model.Object");

use \PsiFramework\Classes\Model\Object;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The Country class describes the information for a Country
 *
 * @package Model
 */
class Country extends Object
{

    protected /*string*/ $_iso ;
    protected /*string*/ $_name ;

    /**
     * Country constructor
     *
     * @param     string    $iso    the iso code
     * @param     string    $name    the name
     * @return     Country    country instance
     */
    public function __construct(/*string*/ $iso=null, /*string*/ $name=null)
    {
        $this->_iso = $iso ;
        $this->_name = $name ;
    }

    /**
     * Getter for iso
     *
     * @return string    the iso code
     */
    public function getISO()
    {
        return $this->_iso ;
    }

    /**
     * Getter for name
     *
     * @return string    the name
     */
    public function getName()
    {
        return $this->_name ;
    }

    /**
     * Setter for iso
     *
     * @param string    the iso code
     */
    public function setISO(/*string*/ $iso)
    {
        $this->_iso = $iso ;
    }

    /**
     * Setter for name
     *
     * @param string    the name
     */
    public function setName(/*string*/ $name)
    {
        $this->_name = $name;
    }

    /**
     * The getId function
     *
     * @return id
     */
    public function getId()
    {
        return $this->getISO();
    }

    /**
     * The toString function
     *
     * @return string
     */
    public function toString()
    {

    }
}
